package com.pzhyd.sc.entity;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
 * Menuinfo entity. @author MyEclipse Persistence Tools
 */

public class Menuinfo implements java.io.Serializable {

	// Fields

	private int mid;
	private int mparentId;
	private String mname;
	private String mimg;
	private String murl;
	private Set rminfos = new HashSet(0);
	
	/**
	 * 子菜单数组
	 */
	private List<Menuinfo> childMenuList = new ArrayList<Menuinfo>();

	// Constructors

	/** default constructor */
	public Menuinfo() {
	}

	/** minimal constructor */
	public Menuinfo(int mparentId, String mname) {
		this.mparentId = mparentId;
		this.mname = mname;
	}

	/** full constructor */
	public Menuinfo(int mparentId, String mname, String mimg, String murl,
			Set rminfos) {
		this.mparentId = mparentId;
		this.mname = mname;
		this.mimg = mimg;
		this.murl = murl;
		this.rminfos = rminfos;
	}

	public List<Menuinfo> getChildMenuList() {
		return childMenuList;
	}

	public void setChildMenuList(List<Menuinfo> childMenuList) {
		this.childMenuList = childMenuList;
	}
	// Property accessors

	public int getMid() {
		return this.mid;
	}

	public void setMid(int mid) {
		this.mid = mid;
	}

	public int getMparentId() {
		return this.mparentId;
	}

	public void setMparentId(int mparentId) {
		this.mparentId = mparentId;
	}

	public String getMname() {
		return this.mname;
	}

	public void setMname(String mname) {
		this.mname = mname;
	}

	public String getMimg() {
		return this.mimg;
	}

	public void setMimg(String mimg) {
		this.mimg = mimg;
	}

	public String getMurl() {
		return this.murl;
	}

	public void setMurl(String murl) {
		this.murl = murl;
	}

	public Set getRminfos() {
		return this.rminfos;
	}

	public void setRminfos(Set rminfos) {
		this.rminfos = rminfos;
	}

}